aboutsummaryrefslogtreecommitdiff
path: root/src/routes/user/[user]
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-02-17 21:55:54 -0800
committerFuwn <[email protected]>2024-02-17 21:55:54 -0800
commit624ef3589113d5c4eb69f813b9c35443789c2e0a (patch)
tree66d1fdc750391939d40ffceb358c9a3e5ec970aa /src/routes/user/[user]
parentfeat(badges): optionally hide missing badges (diff)
downloaddue.moe-624ef3589113d5c4eb69f813b9c35443789c2e0a.tar.xz
due.moe-624ef3589113d5c4eb69f813b9c35443789c2e0a.zip
feat(locale): localise user preferences
Diffstat (limited to 'src/routes/user/[user]')
-rw-r--r--src/routes/user/[user]/+page.svelte7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/routes/user/[user]/+page.svelte b/src/routes/user/[user]/+page.svelte
index c93647f4..910a99e2 100644
--- a/src/routes/user/[user]/+page.svelte
+++ b/src/routes/user/[user]/+page.svelte
@@ -11,6 +11,7 @@
import tooltip from '$lib/Tooltip/tooltip.js';
import AnimeRateLimited from '$lib/Error/AnimeRateLimited.svelte';
import identity from '$stores/identity';
+ import SettingHint from '$lib/Settings/SettingHint.svelte';
export let data;
@@ -128,7 +129,7 @@
<p />
<details open>
- <summary>User Preferences</summary>
+ <summary>{$locale().user.preferences.title}</summary>
<input
type="checkbox"
@@ -139,7 +140,9 @@
});
}}
checked={preferences.hide_missing_badges}
- /> Hide missing badges from Badge Wall
+ />
+ {$locale().user.preferences.hideMissingBadges.title}
+ <SettingHint lineBreak>{$locale().user.preferences.hideMissingBadges.hint}</SettingHint>
</details>
{/await}
{/await}